home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 4 / MacMania 4.toast / / Multimedia & Desktop / gsu-fork-off / Fork Off - Read Me < prev   
Text File  |  1995-03-26  |  3KB  |  56 lines

  1. RELEASE NOTES FOR FORK OFF
  2.  
  3. This is a utility of the 'one dumb job' variety. It does one job, and
  4. does it fast and with minimal hoorah.
  5.  
  6. Fork Off is SYSTEM 7 ONLY. Its only interface is Drag and Drop, so you
  7. cannot use it with earlier Systems. If you double-click on it from a
  8. System 6 machine, you will get an error message and the software will
  9. quit gracefully.
  10.  
  11. To use Fork Off _with_ System 7, simply select the files you want to
  12. modify and drag them on the program's icon or an alias of it. The files
  13. you drag and drop will be _irrevocably_ modified, so BE CAREFUL!
  14.  
  15. Fork Off does this: it eliminates the resource fork from any file that
  16. is fed to it. It will eat files of any type, and it is very fast.
  17.  
  18. Why would you want to do this? Certain applications - such as BBEdit -
  19. store information useful to them in the resource fork. While nice, this
  20. data is inessential, and the disk space it uses adds up. If you're done
  21. editing these files, you have nothing to gain from keeping the resource
  22. fork data. There are other analagous situations. For example, if you're
  23. moving a Mac TEXT file to a DOS or UNIX machine, the resource fork may
  24. or may not be carried over, but it will not be used in any case; might
  25. as well get rid of it.
  26.  
  27. Why WOULDN'T you want to do this? Many Macintosh files carry critical,
  28. irreplaceable information in the resource fork. Every application
  29. program is _all_ resources. Every Type 1 Postscript font is _all_
  30. resources. Many data files use the resource fork to supplement the data
  31. fork - TeachText/SimpleText files and Nisus files are examples. Fork Off
  32. kills the resource fork in EVERY file it sees. If you drag and drop a
  33. file that will suffer for losing its resource fork, THE CHANGE IS
  34. IRREVOCABLE.
  35.  
  36. The programming to achieve this change is actually quite simple. After
  37. a bit of overhead, we do:
  38.  
  39.     OpenRF (infile.fName, infile.vRefNum, &INfRefNum);
  40.     SetEOF (INfRefNum, 0L);
  41.     FSClose (INfRefNum);
  42.  
  43. The first line opens the resource fork and the second line sets its
  44. length (its EndOfFile) to zero bytes. There can't be any resources in a
  45. zero length resource fork, so all of the resources are thrown away and
  46. the operating system opens up the disk blocks formerly occupied by
  47. those resources.
  48.  
  49. I wrote this in response to a couple of queries that appeared in the
  50. Info-Mac Archive list. I hope that it proves useful to those two
  51. people, and to anyone else who might need it. And I hope EVERYONE will
  52. BE CAREFUL. The file you save may be your own...
  53.  
  54. Greg Swann
  55. 3/26/95
  56.